import Vue from 'vue';
import ElementUI from 'element-ui';
Vue.use(ElementUI);

import './assets/style.css';
import './axios.config';

new Vue({
	el: '#app',
	data: {
		message: 'Hello World',
		article: '',
	},
	mounted() {
		this.$http.get('/p/ebef9ffb7851').then(res => {
			let doc = document.createElement('div');
			doc.innerHTML = res.data;
			this.article = doc.querySelector('.article .show-content').innerHTML;
		});
	},
});
